import request from '@/utils/request'

export function fetchUserList(query) {
  return request({
    url: '/admin/user_list',
    method: 'get',
    params: query
  })
}

export function addUser(data) {
  return request({
    url: '/admin/add_user',
    method: 'post',
    data
  })
}

export function deleteUser(data) {
  return request({
    url: '/admin/delete_user',
    method: 'post',
    data
  })
}
export function updateUser(data) {
  return request({
    url: '/admin/update_user',
    method: 'post',
    data
  })
}